package com.hrbxlh.virtualization.service;

import com.hrbxlh.virtualization.dto.FlavorDTO;
import com.hrbxlh.virtualization.pojo.Container;

/**
 * @author cheer
 */
public interface DockerService {

    Container createContainer(String imageName, String volumeName, FlavorDTO flavorDTO, String hostname);

    void deleteContainer(String rancherId);

    void startContainer(String rancherId);

    void stopContainer(String rancherId);

    boolean isContainerExists(String rancherId);

    String queryDesktopUrl(String rancherId);

    String queryClipboardUrl(String rancherId);

    void createImage(Container container, String imageName);

    void deleteImage(String imageName);

    void execCmd(Container container, String cmd);

    void execCmd(String hostIp, String dockerId, String cmd);

    String queryFtpUrl(String rancherId);

    String queryHost(String rancherId);
}
